<?php

// 临时控制器

namespace app\api\controller;

use app\api\controller\Base;
use think\facade\Cache;
use think\facade\Log;
use think\Db;

class Temp extends Base
{

    /**
     * 临时
     */
    public function temp()
    {
        try {
            // 只允许命令行访问
            if (PHP_SAPI != 'cli') {
                return ['code' => 999, 'msg' => '404'];
            }
        } catch (\Exception $e) {
            payment_error_log(147369, $e->getMessage());
            return ['code' => 999, 'msg' => '404'];
        }
    }
}
